package prog.view;


import java.awt.Dimension;
import javax.swing.JDialog;
import javax.swing.JFrame;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author MrKhoai
 */
public class ProjectPropertyForm {
        private JDialog dlg;
        private ProjectPropertyPanel pn;
    public ProjectPropertyForm() {

        pn = new ProjectPropertyPanel();

        dlg = new JDialog();
        dlg.setModal(true);
        dlg.setContentPane(pn);
        dlg.setMinimumSize(new Dimension(730,520));
        dlg.setMaximumSize(new Dimension(730,520));
        dlg.setLocation(250,100);
        dlg.setResizable(false);
        dlg.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
    }

    public void showForm(boolean isShow) {
        pn.load();
        dlg.setVisible(isShow);
    }

    public void defaultView(String defaultView) {
        pn.setViewPanelDefault(defaultView);
    }
}
